Tables

<TABLE [...]>...</TABLE>
Inserts a table. The following parameters can be used:

[ALIGN="left|right"]
Align the table.

[BORDER="n ]
Gives the table a 3D-look. BORDER is the width of the border in dots.

[CELLSPACING="n ]
Sets the space between cells in dots.

[CELLPADDING="n ]
Sets the space between the content of the cells and the borders.

[WIDTH="n n "]
Sets the width of the table in pixels or in percent of the page.

[HEIGHT="n n "]
Sets the height of the table in pixels or in percent of the page.

[BACKGROUND="url ]
Defines a background of the table. IE NS4

[BGCOLOR="color ]
Defines the background color of the table. IE NS3

[BORDERCOLOR="color ]
Defines the border color of the table. IE NS4

[BORDERCOLORLIGHT="color ]
Defines the light shadow color of the table. IE

[BORDERCOLORDARK="color ]
Defines the dark shadow color of the table. IE

[FRAMES="void|above|below|hsides|vsides|lhs|rhs|box"]
This is an Internet Explorer-property which defines which sidees of the table border that will be displayed. IE

[RULES="none|rows|cols|groups"]
This is an Internet Explorer tag that can be used to just show horizontal or vertical rules in the table. NONE will just show the table frame. GROUPS will display lines between the THEAD, TBODY and TFOOT tags. IE

Table Tags

<CAPTION [ALIGN="top|bottom"]>text </CAPTION>
"text" will be the tables header. Use this tag inside the <TABLE> tag, but not within lines. You can show the header over or under the TABLE by setting ALIGN to TOP resp. BOTTOM.

<TR [ALIGN="left|center|right"] [VALIGN="top|middle|bottom|baseline"] [BACKGROUND="url ] [BGCOLOR="color ] [HEIGHT="n n "] [BORDERCOLOR="color ] BORDERCOLORLIGHT="color ] [BORDERCOLORDARK="color ]>...</TR>
Start a new line in the table. ALIGN sets the horizontal adjusments for the lines text and VALIGN the vertical adjustment. BGCOLOR is a background color. HEIGHT is the minimum height of the row in pixels or percent. HEIGHT is not defined in a HTML standard, but works in Netscape 2.x. Do not need to end with </TR> according to HTML 3.2, but see below about nested tables. (IE NS3 NS4)

<TD|TH [ALIGN="left|center|right"] [VALIGN="top|middle|bottom|baseline"] [NOWRAP] [COLSPAN="n ] [ROWSPAN="n ] [WIDTH="n n "] [HEIGHT="n n "] [BACKGROUND="url ] [BGCOLOR="color ] [BORDERCOLOR="color ] BORDERCOLORLIGHT="color ] [BORDERCOLORDARK="color ]>...</TD|TH>
TD and TH insert a new cell. TH stands for 'table header' and displays the contents of the cell in bold. ALIGN sets the adjustments of the text. NOWRAP prevents the browser from wrapping the cell contents. COLSPAN can be used to let the cell go over more than one column. Default is 1. ROWSPAN is the same thing, but let the cell go over more than one line. Default setting is 1. WIDTH sets the width of the cell. BGCOLOR is a background color. HEIGHT is the minimum height of the cell in pixels or percent. (IE NS3 NS4)

<THEAD>, <TBODY>, <TFOOT>, <COLGROUP>, <COL>
These are Explorer extensions, mostly for use with the FRAME parameter to the TABLE tag. Not supported in other browsers and therefore not detailed explained here. IE

The ending </TR>, </TD> end </TH> are not required in HTML 3.2 since any following tag defining a row, cell or table closes the previous cell definition, but because of a bug in Netscape Navigator it is recommended to use them.